package com.gitee.solon.admin.service.impl;

import com.gitee.solon.admin.mapper.UserMapper;
import com.gitee.solon.admin.model.User;
import com.gitee.solon.admin.service.UserService;
import com.mybatisflex.solon.service.impl.ServiceImpl;
import org.apache.ibatis.solon.annotation.Db;
import org.noear.solon.annotation.ProxyComponent;

import java.util.List;

/**
 * @author: ChenGZ
 * @date: 2023-08-08 14:10
 */
@ProxyComponent
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Db("db2")
    UserMapper userMapper;

    @Override
    public List<User> selectAll(){
        return userMapper.selectAll();
    }

    @Override
    public List<User> getUserList() {
        return userMapper.getUserList();
    }
}
